package demo;

public class Main {

    static class SubThread extends Thread{
        @Override
        public void run() {
            System.out.println(Thread.currentThread().getName());
        }
    }

    public static void main(String[] args) {

        SubThread subThread=new SubThread();
        subThread.start();//创建一个线程，让这个线程去干活
        subThread.run();//创建一个线程，但是自己去干活了

    }


}
